import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

export const getUserInfo = () => {
  return request.get('/sys/profile')
}

export const updatePassword = (data) => {
  return request.put('/sys/user/updatePass', data)
}
